package com.hwy.struts.actions;

import java.util.Date;

import javax.servlet.http.HttpServletRequest;

import org.apache.struts2.ServletActionContext;

import com.hwy.struts.domain.User;
import com.opensymphony.xwork2.ActionSupport;
import com.opensymphony.xwork2.ModelDriven;

public class DataAction3 extends ActionSupport implements ModelDriven<User>{
//	private User user = new User();
	// 模型驱动的方式进行数据的赋值
	public String get() {
		System.out.println("进来了");
		return SUCCESS;
	}

	@Override
	public User getModel() {
//		return user;
		return null;
	}
}
